Skip to content

XBRL Linkbases

Linkbases are XML documents that define relationships between concepts and between concepts and resources. They are a core part of taxonomies, built using the XLink standard.

The Five Standard Linkbase Types

1. Label Linkbase

Purpose: Provides human-readable names for concepts.

  • Supports multiple languages (English, French, Afrikaans, etc.) for the same concept
  • Supports multiple label types per concept:
Label RoleUse
labelStandard/default label
terseLabelShort/abbreviated label
verboseLabelLong descriptive label
documentationExplanatory text (like a tooltip)
periodStartLabelLabel for opening balance context
periodEndLabelLabel for closing balance context
totalLabelLabel when used as a total
negatedLabelLabel when sign is reversed

Example from LEI taxonomy:

xml
<link:label xml:lang="en">Legal Entity Identifier</link:label>
<link:label xlink:role=".../documentation" xml:lang="en">
  Legal Entity Identifier (LEI) for the reporting entity.
</link:label>

2. Presentation Linkbase

Purpose: Defines the tree structure for displaying concepts in a report.

  • Parent-child hierarchies organise concepts into sections
  • order attribute controls display sequence
  • preferredLabel can specify which label type to use in a given position

Example structure:

Statement of Financial Position [abstract]
├── Assets [abstract]
│   ├── Current Assets
│   │   ├── Cash and Cash Equivalents
│   │   ├── Trade Receivables
│   │   └── Inventories
│   └── Non-Current Assets
│       ├── Property, Plant and Equipment
│       └── Intangible Assets
└── Equity and Liabilities [abstract]
    ├── Equity
    └── Liabilities

3. Calculation Linkbase

Purpose: Defines arithmetic validation rules (addition and subtraction only).

  • Uses weight attribute: +1 for addition, -1 for subtraction
  • Validates that totals equal the sum of their components

Example:

Assets (total)
├── Current Assets (weight = +1)
└── Non-Current Assets (weight = +1)

→ Validation: Assets = Current Assets + Non-Current Assets

Limitations:

  • Only supports summation (no multiplication, division, or conditional logic)
  • For complex validation, use 14 XBRL Formula

4. Definition Linkbase

Purpose: Defines various structural relationships, most importantly for dimensions.

Key arcroles:

ArcroleMeaning
general-specialGenus-species (is-a) relationship
essence-aliasConcepts covering same subject matter
requires-elementOne concept requires another to be present
allPositive hypercube (required dimensions)
notAllNegative hypercube (prohibited dimensions)
hypercube-dimensionLinks hypercube to its dimensions
dimension-domainLinks dimension to its domain
domain-memberLinks domain to its members

5. Reference Linkbase

Purpose: Links concepts to authoritative literature (standards, regulations).

  • Stores pointers like: Standard name, Section, Paragraph, Sub-paragraph
  • Does NOT store the regulation text itself

Example: A concept for "Revenue" might reference "IFRS 15, paragraph 46".

How Linkbases Connect to Schemas

05 XBRL Schemas reference linkbases via <link:linkbaseRef> elements. Each reference includes:

  • xlink:href -- Path to the linkbase file
  • xlink:role -- Which type of linkbase (label, presentation, calculation, definition, reference)
  • xlink:arcrole -- Always http://www.w3.org/1999/xlink/properties/linkbase

Linkbase Naming Conventions

Many taxonomies follow naming patterns:

PrefixLinkbase Type
lab_Label
pre_Presentation
cal_Calculation
def_Definition
ref_Reference
gla_Generic label (alternative labels)
doc_Documentation labels

See 20 CIPC Taxonomy Example for how the CIPC taxonomy uses all five linkbase types extensively.